#include "../include/ball.h"


Ball::Ball()
{
    //ctor
}

Ball::~Ball()
{
    //dtor
}

SDL_Rect Ball::GetImageBounds() const
{
    SDL_Rect bounds;
    bounds.w = 20;
    bounds.h = 20;

    return bounds;
}

SDL_Rect Ball::GetImagePosition() const
{
    SDL_Rect position;
    position.x = x;
    position.y = y;
    return position;
}

void Ball::Draw(SDL_Surface* screen) const
{
    //Setup an elipse at the correct locations
    //surface x y position colors alpha
    filledEllipseRGBA(screen,x,  y, 20, 20, 255,  0,  0,  255);
}

void Ball::UpdatePosition(float newX, float newY)
{
    x = newX;
    y = newY;
}
